﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace SMS.Domain.Model
{
    /// <summary>
    /// 货物
    /// </summary>
    public class Cargo
    {
        public Guid Id { get; set; }
        public string Name { get; set; }
        public string Caption { get; set; }
        /// <summary>
        /// 二纬码
        /// </summary>
        public string Code { get; set; }

        /// <summary>
        /// 规格
        /// </summary>
        public int Specifications { get; set; }

        /// <summary>
        /// 整箱价格
        /// </summary>
        public decimal Price { get; set; }

        /// <summary>
        /// 单瓶价格
        /// </summary>
        public decimal UnitPrice
        {
            get
            {
                return Price / Specifications;
            }
        }

        /// <summary>
        /// 关键字
        /// </summary>
        public string Keywords { get; set; }
    }
}
